package chai.ning.constructors;

public class Sinaean {
	
	private String name; 
	private int age ;
	private char gender ;
	private boolean married ;
	
	public Sinaean() {
	}
	
	public Sinaean( String name ) {
		this.name = name ;
	}
	
	public Sinaean( String name , char gender ) {
		this.name = name ;
		this.gender = gender ;
	}
	
	public Sinaean( String name , int age , char gender ) {
		this.name = name ;
		this.age = age ;
		this.gender = gender ;
	}
	
	public Sinaean( String name , int age , char gender , boolean married ) {
		this.name = name ;
		this.age = age ;
		this.gender = gender ;
		this.married = married ;
	}
	
	public void introduce() {
		System.out.println( this.name + " , " + this.gender + " , " + this.age + "岁 , " + ( this.married ? "已婚" : "未婚" ));
	}
	
	public boolean marry( Sinaean another ) {
		// ???填空
		return false ;
	}
	
	public static void main(String[] args) {
		
		Sinaean first = new Sinaean( "玛卡巴卡" , 3 , '男' , false );
		first.introduce();
		
		Sinaean second = new Sinaean( "依古比古" , 5 , '女' , false );
		
		boolean x = first.marry( second );
		System.out.println( x );
		
	}

}
